package mysql

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

func InitMysql(dsn string, cin *gorm.Config) *gorm.DB {

	DB, err := gorm.Open(mysql.Open(dsn), cin)
	if err != nil {
		panic(err)
	}
	return DB
}
